package bas.list;

import bas.file.FileIO;
import bas.interfaces.RequestList;

public class DeletionRequestList implements RequestList
{
    String[] requestList = null;

    public DeletionRequestList()
    {
        requestList = FileIO.getRequestList(false);
    }

    public boolean addListItem(String id)
    {
        return FileIO.saveRequestList(id, false);
    }

    public String getListItem(int position)
    {
        return requestList[position];
    }

    public int getListLength()
    {
        int length = 0;
        if(requestList != null)
        {
            length = requestList.length;
        }
        return length;
    }
}
